package IneerClassDemo3;

public class Test {
    public static void main(String[] args) {
        //匿名内部类
        Animal cat=new Animal(){
            @Override
            public void cry() {
                System.out.println("喵喵喵");
            }
        };
        cat.cry();
        }
}
